package com.tt.fashionWebSite.dao.jpa;

import com.tt.fashionWebSite.dao.LoaiDanhMucSanPhamDao;
import com.tt.fashionWebSite.domain.LoaiDanhMucSanPham;
import com.tt.fashionWebSite.domain.ThongTinThanhVien;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by PC on 11/28/14.
 */
@Repository("loaiDanhMucSanPham")
public class LoaiDanhMucSanPhamJpaDao extends GenericJpaDao<LoaiDanhMucSanPham, String> implements LoaiDanhMucSanPhamDao {
    public LoaiDanhMucSanPhamJpaDao(){
        super(LoaiDanhMucSanPham.class);
    }

    @Override
    public List<LoaiDanhMucSanPham> getAllProductList(){
        return getEntityManager().createNamedQuery(LoaiDanhMucSanPham.GET_PRODUCT_LIST, LoaiDanhMucSanPham.class).getResultList();
    }
}
